import * as THREE from "three";
class Light {
  constructor() {
    // 创建光源
    this.spotLight = new THREE.SpotLight(0xffffff);
    this.spotLight.intensity = 2000
    this.spotLight.angle = Math.PI / 9
    this.spotLight.penumbra = 1
    this.spotLight.castShadow = true
    this.spotLight.position.set(0, 40, 0);
    //环境光,周围亮度
    this.ambientLight = new THREE.AmbientLight(0xffffff, 0.1)
    // this.light.castShadow = true; // 设置光源投射阴影
  }
}

export default new Light()